package com.zr.dao;

import java.util.List;

import com.zr.model.Orders;

import net.sf.json.JSONObject;


public interface OrdersDao<T> extends BaseDao<T>{

	/**
	 * 撤销订单
	 * @param oid
	 * @param ostatus
	 * @return
	 */
	public boolean removeOrder(Integer oid, String ostatus);
	/**
	 * 取消订单并产生新的返回订单
	 * @param 
	 * @return
	 */
	public int updateAndAddorder(Orders order);
	/**
	 * 条件查找订单
	 * @return 
	 */
	public List<Orders> findOrder(Orders order,String strfhdate,String  overfhdate);
	/**
	 * 修改订单状态
	 * @param order
	 * @return
	 */
	public boolean updateOrderState(Orders order);
}
